<template>
  <div class="about-container">
    <h3>About 组件</h3>
    <h1>首页中传递的数据 {{ $route.query.name }} {{ $route.query.age }}</h1>
    <h1>首页中传递的数据 {{ $route.params.name }} {{ $route.params.age }}</h1>
    <router-link to="/about">tab1</router-link>
    <router-link to="/about/tab2">tab2</router-link>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'MyAbout'
}
</script>

<style lang="scss" scoped>
.about-container {
  min-height: 200px;
  background-color: skyblue;
  padding: 15px;
  > a {
    margin-right: 10px;
  }
}
</style>
